.PHONY:all
all:test thread

thread:thread.cc
	g++ -o $@ $^ -std=c++11 -lpthread
test:threadtest.cc
	g++ -o $@ $^ -std=c++11 -lpthread
.PHONY:clean
clean:
	rm -f thread
	  